import request from '@/utils/request'

// 查询评标条例列表
export function listCriteria(query) {
  return request({
    url: '/bidding/criteria/list',
    method: 'get',
    params: query
  })
}

// 查询评标条例详细
export function getCriteria(evaluationCriteriaId) {
  return request({
    url: '/bidding/criteria/' + evaluationCriteriaId,
    method: 'get'
  })
}

// 新增评标条例
export function addCriteria(data) {
  return request({
    url: '/bidding/criteria',
    method: 'post',
    data: data
  })
}

// 修改评标条例
export function updateCriteria(data) {
  return request({
    url: '/bidding/criteria',
    method: 'put',
    data: data
  })
}

// 删除评标条例
export function delCriteria(evaluationCriteriaId) {
  return request({
    url: '/bidding/criteria/' + evaluationCriteriaId,
    method: 'delete'
  })
}
